﻿<?xml version="1.0" encoding="utf-8" ?>
<FileMover xmlns="http://FileMover.codeplex.com/v1.xsd">
  <Directory source="d:\emule\incoming" depth="infinity">
    <Rule comment="Series" defaultOutcome="exclude">
      <RegEx test="(.*)([0-9]+x[0-9]+)(.*)" value="Filename" outcome="include">
        <Var name="Series" value="$1"/>
        <Var name="Episode" value="$2"/>
        <Var name="Title" value="$3"/>
        <Var name="Filename" value="$(Episode) - $(Title)"/>
      </RegEx>
      <MoveTo target="\\server\Videos\$(Series)"/>
    </Rule>
    <Rule comment="Video Files" defaultOutcome="exclude">
      <MatchExtension extension="avi" outcome="include"/>
      <MatchExtension extension="mkv" outcome="include"/>
      
      <MoveTo target="\\server\Videos"/>
    </Rule>
    <Rule comment="Audio Files" defaultOutcome="exclude">
      <MatchExtension extension="mp3" outcome="include"/>
      <MatchExtension extension="wav" outcome="include"/>
      <MoveTo target="\\server\Musik"/>
    </Rule>
  </Directory>
</FileMover>
